﻿using System;
using System.ComponentModel.DataAnnotations;
using XStudio.XCRF.Data.Business.Archieve;
using XStudio.XCRF.Data.Enums;

namespace XStudio.XCRF.Data.Entities
{
    /// <summary>
    /// 放疗信息
    /// </summary>
    /// <typeparam name="T">具体类型</typeparam>
    public abstract partial class Radio<T> : BaseEntity<T> where T : BaseEntity<T>
    {
        #region 属性
        /// <summary>
        /// 部位
        /// </summary>
        [ArchieveField]
        [EnumDataType(typeof(RadioPlaceTypes))]
        public byte? Place { get; set; }
        /// <summary>
        /// 剂量
        /// </summary>
        [ArchieveField]
        public int? Dose { get; set; }
        /// <summary>
        /// 次数
        /// </summary>
        [ArchieveField]
        public int? Times { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(100)]
        public string Remark { get; set; }
        #endregion 属性
    }
}
